import axios from 'axios'
export default {
	install(app: any) {

		axios.defaults.baseURL = 'http://localhost:5173/api'
		app.config.globalProperties.$axios = axios
		// app.config.globalProperties.imgupload="http://localhost:5173/api/egg/imgupload"
		// 后端服务器的图片显示
		app.config.globalProperties.img="http://127.0.0.1:7001/public"
		
		app.config.globalProperties.imgupload = "http://localhost:5173/api/egg/imgupload"
		app.config.globalProperties.touxiang = "http://localhost:7001"

		// axios.defaults.baseURL = 'http://192.168.16.106:7001'
		// app.config.globalProperties.$axios=axios
		// app.config.globalProperties.imgupload="http://43.136.181.176:7001/egg/imgupload"
		// app.config.globalProperties.touxiang="http://43.136.181.176:7001"

    // axios.defaults.baseURL = 'http://localhost:5173/api'
    // app.config.globalProperties.$axios = axios
    // app.config.globalProperties.imgupload = "http://localhost:5173/api/egg/imgupload"
    app.config.globalProperties.shouyeimg = "http://localhost:7001/public"
  }
}